home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIObjects.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  50KB  |  1,419 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIObjects.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIObject_h
  11. #define SOM_HIObject_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <Types.h>
  18. #include <Quickdraw.h>
  19. #include <TextObjects.h>
  20. #include <Drag.h>
  21. #include <Collections.h>
  22. #include <HIImagingObjects.h>
  23. #include <HIObjectTypes.h>
  24.  
  25. #include <som.h>
  26.  
  27. /*
  28.  * -- This emitter treats Method Tokens as Thunks by default.
  29.  * -- Use the sc modifier "nothunks" to change this default
  30.  */
  31. #undef somresolve_
  32. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  33.  
  34. /*
  35.  * Define the class name as an object type
  36.  */
  37. #ifndef HIObject
  38. #define HIObject SOMObject
  39. #endif
  40. #include <somobj.h>
  41.  
  42. /*
  43.  * Start of user-defined types:
  44.  */
  45. #ifndef SOMClass
  46.     #define SOMClass SOMObject
  47. #endif /* SOMClass */
  48. #ifndef SOMObject
  49.     #define SOMObject SOMObject
  50. #endif /* SOMObject */
  51. #ifndef HIWindow
  52.     #define HIWindow SOMObject
  53. #endif /* HIWindow */
  54.  
  55. /*
  56.  * End of user-defined types.
  57.  */
  58.  
  59. #define HIObject_MajorVersion 0
  60. #define HIObject_MinorVersion 0
  61.  
  62. /*
  63.  * External name shortening if required
  64.  */
  65. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  66. #define HIObjectClassData d
  67. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  68. /*--------------Migration------------*/
  69.  
  70. #ifdef OLDIBMSOMAPISUPPORT
  71. #define HIObject_classObj somNewClassReference(HIObject)
  72. #define _HIObject HIObject_classObj
  73. #define HIObjectCClassData HIObjectClassData
  74. #define HIObjectNewClass(major,minor) somNewVersionedClassReference(HIObject,major,minor)
  75. #endif
  76.  
  77. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  78. #define HIObjectMetaClass SOMClass
  79.  
  80. #if PRAGMA_ALIGN_SUPPORTED
  81. #  pragma options align=power
  82. #endif
  83.  
  84. /*
  85.  * Declare the class data structure
  86.  */
  87. SOMEXTERN struct HIObjectClassDataStructure {
  88. #ifdef OLDIBMSOMAPISUPPORT
  89.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  90. #else
  91.     long zero;
  92. #endif
  93.     somStaticClassInfo *sci;
  94.     somDToken        instanceDataToken;
  95.     long reserved [3];
  96.     somMToken GetWindow;
  97.     somMToken GetPort;
  98.     somMToken GetRefLabel;
  99.     somMToken GetCollection;
  100.     somMToken AddStateChangeCallback;
  101.     somMToken RemoveStateChangeCallback;
  102.     somMToken SetBackgroundPattern;
  103.     somMToken GetBackgroundPattern;
  104.     somMToken Init;
  105.     somMToken Terminate;
  106.     somMToken InitFromAERecord;
  107.     somMToken WriteToAERecord;
  108.     somMToken CalculateOptimalSize;
  109.     somMToken GetBoundingRect;
  110.     somMToken SetBoundingRect;
  111.     somMToken SetPosition;
  112.     somMToken SetSize;
  113.     somMToken GetUpdateRect;
  114.     somMToken Enable;
  115.     somMToken Disable;
  116.     somMToken IsEnabled;
  117.     somMToken Show;
  118.     somMToken Hide;
  119.     somMToken IsVisible;
  120.     somMToken HandleAppleEvent;
  121.     somMToken HandleActivate;
  122.     somMToken HandleDeactivate;
  123.     somMToken HandleNavigation;
  124.     somMToken HandleMouseDownInContent;
  125.     somMToken HandleMouseUpInContent;
  126.     somMToken HandleMouseMovedInContent;
  127.     somMToken HandleMouseStoppedMovingInContent;
  128.     somMToken TakeUserInputFocus;
  129.     somMToken ReleaseUserInputFocus;
  130.     somMToken HasUserInputFocus;
  131.     somMToken CanReleaseUserInputFocus;
  132.     somMToken SetUserInputFocusFlags;
  133.     somMToken GetUserInputFocusFlags;
  134.     somMToken SetTitle;
  135.     somMToken GetTitle;
  136.     somMToken Draw;
  137.     somMToken Erase;
  138.     somMToken Invalidate;
  139.     somMToken GetDrawingMode;
  140.     somMToken SetDrawingMode;
  141.     somMToken Cut;
  142.     somMToken Copy;
  143.     somMToken Paste;
  144.     somMToken Clear;
  145.     somMToken SetClipboardSupportFlags;
  146.     somMToken GetClipboardSupportFlags;
  147.     somMToken DrawContent;
  148.     somMToken EraseContent;
  149.     somMToken TranslatePoint;
  150.     somMToken TranslateRect;
  151.     somMToken StateChanged;
  152.     somMToken Verify;
  153.     somMethodProc *GetHIObjectFromRefLabel;
  154.     somMethodProc *GetNewHIObject;
  155.     somMethodProc *GetNewHIObjectFromResource;
  156.     somMToken Clone;
  157.     somMToken Release;
  158.     somMToken GetOwnerCount;
  159. } SOMDLINK HIObjectClassData;
  160.  
  161. #if PRAGMA_ALIGN_SUPPORTED
  162. #  pragma options align=reset
  163. #endif
  164.  
  165. #if !defined(HIObject_Class_Source) && !defined(SOM_Module_hiobjects_Source)
  166. #if PRAGMA_IMPORT_SUPPORTED
  167. #pragma import list HIObjectClassData
  168. #endif
  169. #endif
  170.  
  171.  
  172. /*
  173.  * New macro for HIObject
  174.  */
  175. #define HIObjectNew() somNewObject(HIObject)
  176.  
  177. /*
  178.  * New Method: GetWindow
  179.  */
  180. typedef HIWindow*   (SOMLINK *somTD_HIObject_GetWindow)(HIObject *somSelf, Environment *ev);
  181. #define somMD_HIObject_GetWindow "::HIObject::GetWindow"
  182. #define HIObject_GetWindow(somSelf,ev) \
  183.     (SOM_Resolve(somSelf, HIObject, GetWindow) \
  184.     (somSelf,ev))
  185. #ifndef SOMGD_GetWindow
  186.     #if defined _GetWindow || defined __GetWindow
  187.         #undef _GetWindow
  188.         #undef __GetWindow
  189.         #define SOMGD_GetWindow 1
  190.     #else
  191.         #define _GetWindow HIObject_GetWindow
  192.     #endif /* _GetWindow */
  193. #endif /* SOMGD_GetWindow */
  194.  
  195. /*
  196.  * New Method: GetPort
  197.  */
  198. typedef CGrafPtr   (SOMLINK *somTD_HIObject_GetPort)(HIObject *somSelf, Environment *ev);
  199. #define somMD_HIObject_GetPort "::HIObject::GetPort"
  200. #define HIObject_GetPort(somSelf,ev) \
  201.     (SOM_Resolve(somSelf, HIObject, GetPort) \
  202.     (somSelf,ev))
  203. #ifndef SOMGD_GetPort
  204.     #if defined _GetPort || defined __GetPort
  205.         #undef _GetPort
  206.         #undef __GetPort
  207.         #define SOMGD_GetPort 1
  208.     #else
  209.         #define _GetPort HIObject_GetPort
  210.     #endif /* _GetPort */
  211. #endif /* SOMGD_GetPort */
  212.  
  213. /*
  214.  * New Method: GetRefLabel
  215.  */
  216. typedef void   (SOMLINK *somTD_HIObject_GetRefLabel)(HIObject *somSelf, Environment *ev,
  217.         RefLabel* identifier);
  218. #define somMD_HIObject_GetRefLabel "::HIObject::GetRefLabel"
  219. #define HIObject_GetRefLabel(somSelf,ev,identifier) \
  220.     (SOM_Resolve(somSelf, HIObject, GetRefLabel) \
  221.     (somSelf,ev,identifier))
  222. #ifndef SOMGD_GetRefLabel
  223.     #if defined _GetRefLabel || defined __GetRefLabel
  224.         #undef _GetRefLabel
  225.         #undef __GetRefLabel
  226.         #define SOMGD_GetRefLabel 1
  227.     #else
  228.         #define _GetRefLabel HIObject_GetRefLabel
  229.     #endif /* _GetRefLabel */
  230. #endif /* SOMGD_GetRefLabel */
  231.  
  232. /*
  233.  * New Method: GetCollection
  234.  */
  235. typedef Collection   (SOMLINK *somTD_HIObject_GetCollection)(HIObject *somSelf, Environment *ev);
  236. #define somMD_HIObject_GetCollection "::HIObject::GetCollection"
  237. #define HIObject_GetCollection(somSelf,ev) \
  238.     (SOM_Resolve(somSelf, HIObject, GetCollection) \
  239.     (somSelf,ev))
  240. #ifndef SOMGD_GetCollection
  241.     #if defined _GetCollection || defined __GetCollection
  242.         #undef _GetCollection
  243.         #undef __GetCollection
  244.         #define SOMGD_GetCollection 1
  245.     #else
  246.         #define _GetCollection HIObject_GetCollection
  247.     #endif /* _GetCollection */
  248. #endif /* SOMGD_GetCollection */
  249.  
  250. /*
  251.  * New Method: Init
  252.  */
  253. typedef OSStatus   (SOMLINK *somTD_HIObject_Init)(HIObject *somSelf, Environment *ev,
  254.         RefLabel* identifier,
  255.         Rect* boundingRect);
  256. #define somMD_HIObject_Init "::HIObject::Init"
  257. #define HIObject_Init(somSelf,ev,identifier,boundingRect) \
  258.     (SOM_Resolve(somSelf, HIObject, Init) \
  259.     (somSelf,ev,identifier,boundingRect))
  260. #ifndef SOMGD_Init
  261.     #if defined _Init || defined __Init
  262.         #undef _Init
  263.         #undef __Init
  264.         #define SOMGD_Init 1
  265.     #else
  266.         #define _Init HIObject_Init
  267.     #endif /* _Init */
  268. #endif /* SOMGD_Init */
  269.  
  270. /*
  271.  * New Method: Terminate
  272.  */
  273. typedef void   (SOMLINK *somTD_HIObject_Terminate)(HIObject *somSelf, Environment *ev);
  274. #define somMD_HIObject_Terminate "::HIObject::Terminate"
  275. #define HIObject_Terminate(somSelf,ev) \
  276.     (SOM_Resolve(somSelf, HIObject, Terminate) \
  277.     (somSelf,ev))
  278. #ifndef SOMGD_Terminate
  279.     #if defined _Terminate || defined __Terminate
  280.         #undef _Terminate
  281.         #undef __Terminate
  282.         #define SOMGD_Terminate 1
  283.     #else
  284.         #define _Terminate HIObject_Terminate
  285.     #endif /* _Terminate */
  286. #endif /* SOMGD_Terminate */
  287.  
  288. /*
  289.  * New Method: Clone
  290.  */
  291. typedef HIObject*   (SOMLINK *somTD_HIObject_Clone)(HIObject *somSelf, Environment *ev);
  292. #define somMD_HIObject_Clone "::HIObject::Clone"
  293. #define HIObject_Clone(somSelf,ev) \
  294.     (SOM_Resolve(somSelf, HIObject, Clone) \
  295.     (somSelf,ev))
  296. #ifndef SOMGD_Clone
  297.     #if defined _Clone || defined __Clone
  298.         #undef _Clone
  299.         #undef __Clone
  300.         #define SOMGD_Clone 1
  301.     #else
  302.         #define _Clone HIObject_Clone
  303.     #endif /* _Clone */
  304. #endif /* SOMGD_Clone */
  305.  
  306. /*
  307.  * New Method: Release
  308.  */
  309. typedef void   (SOMLINK *somTD_HIObject_Release)(HIObject *somSelf, Environment *ev);
  310. #define somMD_HIObject_Release "::HIObject::Release"
  311. #define HIObject_Release(somSelf,ev) \
  312.     (SOM_Resolve(somSelf, HIObject, Release) \
  313.     (somSelf,ev))
  314. #ifndef SOMGD_Release
  315.     #if defined _Release || defined __Release
  316.         #undef _Release
  317.         #undef __Release
  318.         #define SOMGD_Release 1
  319.     #else
  320.         #define _Release HIObject_Release
  321.     #endif /* _Release */
  322. #endif /* SOMGD_Release */
  323.  
  324. /*
  325.  * New Method: GetOwnerCount
  326.  */
  327. typedef ItemCount   (SOMLINK *somTD_HIObject_GetOwnerCount)(HIObject *somSelf, Environment *ev);
  328. #define somMD_HIObject_GetOwnerCount "::HIObject::GetOwnerCount"
  329. #define HIObject_GetOwnerCount(somSelf,ev) \
  330.     (SOM_Resolve(somSelf, HIObject, GetOwnerCount) \
  331.     (somSelf,ev))
  332. #ifndef SOMGD_GetOwnerCount
  333.     #if defined _GetOwnerCount || defined __GetOwnerCount
  334.         #undef _GetOwnerCount
  335.         #undef __GetOwnerCount
  336.         #define SOMGD_GetOwnerCount 1
  337.     #else
  338.         #define _GetOwnerCount HIObject_GetOwnerCount
  339.     #endif /* _GetOwnerCount */
  340. #endif /* SOMGD_GetOwnerCount */
  341.  
  342. /*
  343.  * New Method: InitFromAERecord
  344.  */
  345. typedef OSStatus   (SOMLINK *somTD_HIObject_InitFromAERecord)(HIObject *somSelf, Environment *ev,
  346.         AESubDesc* baseInitializerData,
  347.         AESubDesc* initializerDataForClass,
  348.         HIAERecordDataFormat dataFormat);
  349. #define somMD_HIObject_InitFromAERecord "::HIObject::InitFromAERecord"
  350. #define HIObject_InitFromAERecord(somSelf,ev,baseInitializerData,initializerDataForClass,dataFormat) \
  351.     (SOM_Resolve(somSelf, HIObject, InitFromAERecord) \
  352.     (somSelf,ev,baseInitializerData,initializerDataForClass,dataFormat))
  353. #ifndef SOMGD_InitFromAERecord
  354.     #if defined _InitFromAERecord || defined __InitFromAERecord
  355.         #undef _InitFromAERecord
  356.         #undef __InitFromAERecord
  357.         #define SOMGD_InitFromAERecord 1
  358.     #else
  359.         #define _InitFromAERecord HIObject_InitFromAERecord
  360.     #endif /* _InitFromAERecord */
  361. #endif /* SOMGD_InitFromAERecord */
  362.  
  363. /*
  364.  * New Method: WriteToAERecord
  365.  */
  366. typedef OSStatus   (SOMLINK *somTD_HIObject_WriteToAERecord)(HIObject *somSelf, Environment *ev,
  367.         AERecord* dataForSubclass,
  368.         AERecord* objectData,
  369.         HIAERecordDataFormat dataFormat);
  370. #define somMD_HIObject_WriteToAERecord "::HIObject::WriteToAERecord"
  371. #define HIObject_WriteToAERecord(somSelf,ev,dataForSubclass,objectData,dataFormat) \
  372.     (SOM_Resolve(somSelf, HIObject, WriteToAERecord) \
  373.     (somSelf,ev,dataForSubclass,objectData,dataFormat))
  374. #ifndef SOMGD_WriteToAERecord
  375.     #if defined _WriteToAERecord || defined __WriteToAERecord
  376.         #undef _WriteToAERecord
  377.         #undef __WriteToAERecord
  378.         #define SOMGD_WriteToAERecord 1
  379.     #else
  380.         #define _WriteToAERecord HIObject_WriteToAERecord
  381.     #endif /* _WriteToAERecord */
  382. #endif /* SOMGD_WriteToAERecord */
  383.  
  384. /*
  385.  * New Method: CalculateOptimalSize
  386.  */
  387. typedef void   (SOMLINK *somTD_HIObject_CalculateOptimalSize)(HIObject *somSelf, Environment *ev,
  388.         SInt16* optimalWidth,
  389.         SInt16* optimalHeight);
  390. #define somMD_HIObject_CalculateOptimalSize "::HIObject::CalculateOptimalSize"
  391. #define HIObject_CalculateOptimalSize(somSelf,ev,optimalWidth,optimalHeight) \
  392.     (SOM_Resolve(somSelf, HIObject, CalculateOptimalSize) \
  393.     (somSelf,ev,optimalWidth,optimalHeight))
  394. #ifndef SOMGD_CalculateOptimalSize
  395.     #if defined _CalculateOptimalSize || defined __CalculateOptimalSize
  396.         #undef _CalculateOptimalSize
  397.         #undef __CalculateOptimalSize
  398.         #define SOMGD_CalculateOptimalSize 1
  399.     #else
  400.         #define _CalculateOptimalSize HIObject_CalculateOptimalSize
  401.     #endif /* _CalculateOptimalSize */
  402. #endif /* SOMGD_CalculateOptimalSize */
  403.  
  404. /*
  405.  * New Method: GetBoundingRect
  406.  */
  407. typedef void   (SOMLINK *somTD_HIObject_GetBoundingRect)(HIObject *somSelf, Environment *ev,
  408.         HICoordinateSystem coordinate,
  409.         Rect* boundingRect);
  410. #define somMD_HIObject_GetBoundingRect "::HIObject::GetBoundingRect"
  411. #define HIObject_GetBoundingRect(somSelf,ev,coordinate,boundingRect) \
  412.     (SOM_Resolve(somSelf, HIObject, GetBoundingRect) \
  413.     (somSelf,ev,coordinate,boundingRect))
  414. #ifndef SOMGD_GetBoundingRect
  415.     #if defined _GetBoundingRect || defined __GetBoundingRect
  416.         #undef _GetBoundingRect
  417.         #undef __GetBoundingRect
  418.         #define SOMGD_GetBoundingRect 1
  419.     #else
  420.         #define _GetBoundingRect HIObject_GetBoundingRect
  421.     #endif /* _GetBoundingRect */
  422. #endif /* SOMGD_GetBoundingRect */
  423.  
  424. /*
  425.  * New Method: SetBoundingRect
  426.  */
  427. typedef void   (SOMLINK *somTD_HIObject_SetBoundingRect)(HIObject *somSelf, Environment *ev,
  428.         HICoordinateSystem coordinate,
  429.         Rect* newBoundingRect);
  430. #define somMD_HIObject_SetBoundingRect "::HIObject::SetBoundingRect"
  431. #define HIObject_SetBoundingRect(somSelf,ev,coordinate,newBoundingRect) \
  432.     (SOM_Resolve(somSelf, HIObject, SetBoundingRect) \
  433.     (somSelf,ev,coordinate,newBoundingRect))
  434. #ifndef SOMGD_SetBoundingRect
  435.     #if defined _SetBoundingRect || defined __SetBoundingRect
  436.         #undef _SetBoundingRect
  437.         #undef __SetBoundingRect
  438.         #define SOMGD_SetBoundingRect 1
  439.     #else
  440.         #define _SetBoundingRect HIObject_SetBoundingRect
  441.     #endif /* _SetBoundingRect */
  442. #endif /* SOMGD_SetBoundingRect */
  443.  
  444. /*
  445.  * New Method: SetPosition
  446.  */
  447. typedef void   (SOMLINK *somTD_HIObject_SetPosition)(HIObject *somSelf, Environment *ev,
  448.         HICoordinateSystem coordinate,
  449.         Point* newPosition);
  450. #define somMD_HIObject_SetPosition "::HIObject::SetPosition"
  451. #define HIObject_SetPosition(somSelf,ev,coordinate,newPosition) \
  452.     (SOM_Resolve(somSelf, HIObject, SetPosition) \
  453.     (somSelf,ev,coordinate,newPosition))
  454. #ifndef SOMGD_SetPosition
  455.     #if defined _SetPosition || defined __SetPosition
  456.         #undef _SetPosition
  457.         #undef __SetPosition
  458.         #define SOMGD_SetPosition 1
  459.     #else
  460.         #define _SetPosition HIObject_SetPosition
  461.     #endif /* _SetPosition */
  462. #endif /* SOMGD_SetPosition */
  463.  
  464. /*
  465.  * New Method: SetSize
  466.  */
  467. typedef void   (SOMLINK *somTD_HIObject_SetSize)(HIObject *somSelf, Environment *ev,
  468.         SInt16 width,
  469.         SInt16 height);
  470. #define somMD_HIObject_SetSize "::HIObject::SetSize"
  471. #define HIObject_SetSize(somSelf,ev,width,height) \
  472.     (SOM_Resolve(somSelf, HIObject, SetSize) \
  473.     (somSelf,ev,width,height))
  474. #ifndef SOMGD_SetSize
  475.     #if defined _SetSize || defined __SetSize
  476.         #undef _SetSize
  477.         #undef __SetSize
  478.         #define SOMGD_SetSize 1
  479.     #else
  480.         #define _SetSize HIObject_SetSize
  481.     #endif /* _SetSize */
  482. #endif /* SOMGD_SetSize */
  483.  
  484. /*
  485.  * New Method: GetUpdateRect
  486.  */
  487. typedef void   (SOMLINK *somTD_HIObject_GetUpdateRect)(HIObject *somSelf, Environment *ev,
  488.         HICoordinateSystem coordinate,
  489.         Rect* updateRect);
  490. #define somMD_HIObject_GetUpdateRect "::HIObject::GetUpdateRect"
  491. #define HIObject_GetUpdateRect(somSelf,ev,coordinate,updateRect) \
  492.     (SOM_Resolve(somSelf, HIObject, GetUpdateRect) \
  493.     (somSelf,ev,coordinate,updateRect))
  494. #ifndef SOMGD_GetUpdateRect
  495.     #if defined _GetUpdateRect || defined __GetUpdateRect
  496.         #undef _GetUpdateRect
  497.         #undef __GetUpdateRect
  498.         #define SOMGD_GetUpdateRect 1
  499.     #else
  500.         #define _GetUpdateRect HIObject_GetUpdateRect
  501.     #endif /* _GetUpdateRect */
  502. #endif /* SOMGD_GetUpdateRect */
  503.  
  504. /*
  505.  * New Method: Enable
  506.  */
  507. typedef void   (SOMLINK *somTD_HIObject_Enable)(HIObject *somSelf, Environment *ev);
  508. #define somMD_HIObject_Enable "::HIObject::Enable"
  509. #define HIObject_Enable(somSelf,ev) \
  510.     (SOM_Resolve(somSelf, HIObject, Enable) \
  511.     (somSelf,ev))
  512. #ifndef SOMGD_Enable
  513.     #if defined _Enable || defined __Enable
  514.         #undef _Enable
  515.         #undef __Enable
  516.         #define SOMGD_Enable 1
  517.     #else
  518.         #define _Enable HIObject_Enable
  519.     #endif /* _Enable */
  520. #endif /* SOMGD_Enable */
  521.  
  522. /*
  523.  * New Method: Disable
  524.  */
  525. typedef void   (SOMLINK *somTD_HIObject_Disable)(HIObject *somSelf, Environment *ev);
  526. #define somMD_HIObject_Disable "::HIObject::Disable"
  527. #define HIObject_Disable(somSelf,ev) \
  528.     (SOM_Resolve(somSelf, HIObject, Disable) \
  529.     (somSelf,ev))
  530. #ifndef SOMGD_Disable
  531.     #if defined _Disable || defined __Disable
  532.         #undef _Disable
  533.         #undef __Disable
  534.         #define SOMGD_Disable 1
  535.     #else
  536.         #define _Disable HIObject_Disable
  537.     #endif /* _Disable */
  538. #endif /* SOMGD_Disable */
  539.  
  540. /*
  541.  * New Method: IsEnabled
  542.  */
  543. typedef boolean   (SOMLINK *somTD_HIObject_IsEnabled)(HIObject *somSelf, Environment *ev);
  544. #define somMD_HIObject_IsEnabled "::HIObject::IsEnabled"
  545. #define HIObject_IsEnabled(somSelf,ev) \
  546.     (SOM_Resolve(somSelf, HIObject, IsEnabled) \
  547.     (somSelf,ev))
  548. #ifndef SOMGD_IsEnabled
  549.     #if defined _IsEnabled || defined __IsEnabled
  550.         #undef _IsEnabled
  551.         #undef __IsEnabled
  552.         #define SOMGD_IsEnabled 1
  553.     #else
  554.         #define _IsEnabled HIObject_IsEnabled
  555.     #endif /* _IsEnabled */
  556. #endif /* SOMGD_IsEnabled */
  557.  
  558. /*
  559.  * New Method: Show
  560.  */
  561. typedef void   (SOMLINK *somTD_HIObject_Show)(HIObject *somSelf, Environment *ev);
  562. #define somMD_HIObject_Show "::HIObject::Show"
  563. #define HIObject_Show(somSelf,ev) \
  564.     (SOM_Resolve(somSelf, HIObject, Show) \
  565.     (somSelf,ev))
  566. #ifndef SOMGD_Show
  567.     #if defined _Show || defined __Show
  568.         #undef _Show
  569.         #undef __Show
  570.         #define SOMGD_Show 1
  571.     #else
  572.         #define _Show HIObject_Show
  573.     #endif /* _Show */
  574. #endif /* SOMGD_Show */
  575.  
  576. /*
  577.  * New Method: Hide
  578.  */
  579. typedef void   (SOMLINK *somTD_HIObject_Hide)(HIObject *somSelf, Environment *ev);
  580. #define somMD_HIObject_Hide "::HIObject::Hide"
  581. #define HIObject_Hide(somSelf,ev) \
  582.     (SOM_Resolve(somSelf, HIObject, Hide) \
  583.     (somSelf,ev))
  584. #ifndef SOMGD_Hide
  585.     #if defined _Hide || defined __Hide
  586.         #undef _Hide
  587.         #undef __Hide
  588.         #define SOMGD_Hide 1
  589.     #else
  590.         #define _Hide HIObject_Hide
  591.     #endif /* _Hide */
  592. #endif /* SOMGD_Hide */
  593.  
  594. /*
  595.  * New Method: IsVisible
  596.  */
  597. typedef boolean   (SOMLINK *somTD_HIObject_IsVisible)(HIObject *somSelf, Environment *ev);
  598. #define somMD_HIObject_IsVisible "::HIObject::IsVisible"
  599. #define HIObject_IsVisible(somSelf,ev) \
  600.     (SOM_Resolve(somSelf, HIObject, IsVisible) \
  601.     (somSelf,ev))
  602. #ifndef SOMGD_IsVisible
  603.     #if defined _IsVisible || defined __IsVisible
  604.         #undef _IsVisible
  605.         #undef __IsVisible
  606.         #define SOMGD_IsVisible 1
  607.     #else
  608.         #define _IsVisible HIObject_IsVisible
  609.     #endif /* _IsVisible */
  610. #endif /* SOMGD_IsVisible */
  611.  
  612. /*
  613.  * New Method: HandleAppleEvent
  614.  */
  615. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleAppleEvent)(HIObject *somSelf, Environment *ev,
  616.         AEEventClass eventClass,
  617.         AEEventID eventID,
  618.         AppleEvent* theEvent,
  619.         AppleEvent* reply,
  620.         AEHandlerTableRef handlerTableRef);
  621. #define somMD_HIObject_HandleAppleEvent "::HIObject::HandleAppleEvent"
  622. #define HIObject_HandleAppleEvent(somSelf,ev,eventClass,eventID,theEvent,reply,handlerTableRef) \
  623.     (SOM_Resolve(somSelf, HIObject, HandleAppleEvent) \
  624.     (somSelf,ev,eventClass,eventID,theEvent,reply,handlerTableRef))
  625. #ifndef SOMGD_HandleAppleEvent
  626.     #if defined _HandleAppleEvent || defined __HandleAppleEvent
  627.         #undef _HandleAppleEvent
  628.         #undef __HandleAppleEvent
  629.         #define SOMGD_HandleAppleEvent 1
  630.     #else
  631.         #define _HandleAppleEvent HIObject_HandleAppleEvent
  632.     #endif /* _HandleAppleEvent */
  633. #endif /* SOMGD_HandleAppleEvent */
  634.  
  635. /*
  636.  * New Method: HandleActivate
  637.  */
  638. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleActivate)(HIObject *somSelf, Environment *ev,
  639.         AppleEvent* theEvent,
  640.         AppleEvent* reply,
  641.         AEHandlerTableRef handlerTableRef);
  642. #define somMD_HIObject_HandleActivate "::HIObject::HandleActivate"
  643. #define HIObject_HandleActivate(somSelf,ev,theEvent,reply,handlerTableRef) \
  644.     (SOM_Resolve(somSelf, HIObject, HandleActivate) \
  645.     (somSelf,ev,theEvent,reply,handlerTableRef))
  646. #ifndef SOMGD_HandleActivate
  647.     #if defined _HandleActivate || defined __HandleActivate
  648.         #undef _HandleActivate
  649.         #undef __HandleActivate
  650.         #define SOMGD_HandleActivate 1
  651.     #else
  652.         #define _HandleActivate HIObject_HandleActivate
  653.     #endif /* _HandleActivate */
  654. #endif /* SOMGD_HandleActivate */
  655.  
  656. /*
  657.  * New Method: HandleDeactivate
  658.  */
  659. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleDeactivate)(HIObject *somSelf, Environment *ev,
  660.         AppleEvent* theEvent,
  661.         AppleEvent* reply,
  662.         AEHandlerTableRef handlerTableRef);
  663. #define somMD_HIObject_HandleDeactivate "::HIObject::HandleDeactivate"
  664. #define HIObject_HandleDeactivate(somSelf,ev,theEvent,reply,handlerTableRef) \
  665.     (SOM_Resolve(somSelf, HIObject, HandleDeactivate) \
  666.     (somSelf,ev,theEvent,reply,handlerTableRef))
  667. #ifndef SOMGD_HandleDeactivate
  668.     #if defined _HandleDeactivate || defined __HandleDeactivate
  669.         #undef _HandleDeactivate
  670.         #undef __HandleDeactivate
  671.         #define SOMGD_HandleDeactivate 1
  672.     #else
  673.         #define _HandleDeactivate HIObject_HandleDeactivate
  674.     #endif /* _HandleDeactivate */
  675. #endif /* SOMGD_HandleDeactivate */
  676.  
  677. /*
  678.  * New Method: HandleNavigation
  679.  */
  680. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleNavigation)(HIObject *somSelf, Environment *ev,
  681.         SInt8 key,
  682.         SInt8 keyCode,
  683.         EventModifiers modifiers,
  684.         AppleEvent* theEvent,
  685.         AppleEvent* reply,
  686.         AEHandlerTableRef handlerTableRef);
  687. #define somMD_HIObject_HandleNavigation "::HIObject::HandleNavigation"
  688. #define HIObject_HandleNavigation(somSelf,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef) \
  689.     (SOM_Resolve(somSelf, HIObject, HandleNavigation) \
  690.     (somSelf,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef))
  691. #ifndef SOMGD_HandleNavigation
  692.     #if defined _HandleNavigation || defined __HandleNavigation
  693.         #undef _HandleNavigation
  694.         #undef __HandleNavigation
  695.         #define SOMGD_HandleNavigation 1
  696.     #else
  697.         #define _HandleNavigation HIObject_HandleNavigation
  698.     #endif /* _HandleNavigation */
  699. #endif /* SOMGD_HandleNavigation */
  700.  
  701. /*
  702.  * New Method: HandleMouseDownInContent
  703.  */
  704. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleMouseDownInContent)(HIObject *somSelf, Environment *ev,
  705.         Point* portLocalWhere,
  706.         EventModifiers modifiers,
  707.         AppleEvent* theEvent,
  708.         AppleEvent* reply,
  709.         AEHandlerTableRef handlerTableRef);
  710. #define somMD_HIObject_HandleMouseDownInContent "::HIObject::HandleMouseDownInContent"
  711. #define HIObject_HandleMouseDownInContent(somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef) \
  712.     (SOM_Resolve(somSelf, HIObject, HandleMouseDownInContent) \
  713.     (somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef))
  714. #ifndef SOMGD_HandleMouseDownInContent
  715.     #if defined _HandleMouseDownInContent || defined __HandleMouseDownInContent
  716.         #undef _HandleMouseDownInContent
  717.         #undef __HandleMouseDownInContent
  718.         #define SOMGD_HandleMouseDownInContent 1
  719.     #else
  720.         #define _HandleMouseDownInContent HIObject_HandleMouseDownInContent
  721.     #endif /* _HandleMouseDownInContent */
  722. #endif /* SOMGD_HandleMouseDownInContent */
  723.  
  724. /*
  725.  * New Method: HandleMouseMovedInContent
  726.  */
  727. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleMouseMovedInContent)(HIObject *somSelf, Environment *ev,
  728.         Point* portLocalWhere,
  729.         EventModifiers modifiers,
  730.         AppleEvent* theEvent,
  731.         AppleEvent* reply,
  732.         AEHandlerTableRef handlerTableRef);
  733. #define somMD_HIObject_HandleMouseMovedInContent "::HIObject::HandleMouseMovedInContent"
  734. #define HIObject_HandleMouseMovedInContent(somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef) \
  735.     (SOM_Resolve(somSelf, HIObject, HandleMouseMovedInContent) \
  736.     (somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef))
  737. #ifndef SOMGD_HandleMouseMovedInContent
  738.     #if defined _HandleMouseMovedInContent || defined __HandleMouseMovedInContent
  739.         #undef _HandleMouseMovedInContent
  740.         #undef __HandleMouseMovedInContent
  741.         #define SOMGD_HandleMouseMovedInContent 1
  742.     #else
  743.         #define _HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  744.     #endif /* _HandleMouseMovedInContent */
  745. #endif /* SOMGD_HandleMouseMovedInContent */
  746.  
  747. /*
  748.  * New Method: HandleMouseStoppedMovingInContent
  749.  */
  750. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleMouseStoppedMovingInContent)(HIObject *somSelf, Environment *ev,
  751.         Point* portLocalWhere,
  752.         EventModifiers modifiers,
  753.         AppleEvent* theEvent,
  754.         AppleEvent* reply,
  755.         AEHandlerTableRef handlerTableRef);
  756. #define somMD_HIObject_HandleMouseStoppedMovingInContent "::HIObject::HandleMouseStoppedMovingInContent"
  757. #define HIObject_HandleMouseStoppedMovingInContent(somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef) \
  758.     (SOM_Resolve(somSelf, HIObject, HandleMouseStoppedMovingInContent) \
  759.     (somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef))
  760. #ifndef SOMGD_HandleMouseStoppedMovingInContent
  761.     #if defined _HandleMouseStoppedMovingInContent || defined __HandleMouseStoppedMovingInContent
  762.         #undef _HandleMouseStoppedMovingInContent
  763.         #undef __HandleMouseStoppedMovingInContent
  764.         #define SOMGD_HandleMouseStoppedMovingInContent 1
  765.     #else
  766.         #define _HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  767.     #endif /* _HandleMouseStoppedMovingInContent */
  768. #endif /* SOMGD_HandleMouseStoppedMovingInContent */
  769.  
  770. /*
  771.  * New Method: HandleMouseUpInContent
  772.  */
  773. typedef OSStatus   (SOMLINK *somTD_HIObject_HandleMouseUpInContent)(HIObject *somSelf, Environment *ev,
  774.         Point* portLocalWhere,
  775.         EventModifiers modifiers,
  776.         AppleEvent* theEvent,
  777.         AppleEvent* reply,
  778.         AEHandlerTableRef handlerTableRef);
  779. #define somMD_HIObject_HandleMouseUpInContent "::HIObject::HandleMouseUpInContent"
  780. #define HIObject_HandleMouseUpInContent(somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef) \
  781.     (SOM_Resolve(somSelf, HIObject, HandleMouseUpInContent) \
  782.     (somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef))
  783. #ifndef SOMGD_HandleMouseUpInContent
  784.     #if defined _HandleMouseUpInContent || defined __HandleMouseUpInContent
  785.         #undef _HandleMouseUpInContent
  786.         #undef __HandleMouseUpInContent
  787.         #define SOMGD_HandleMouseUpInContent 1
  788.     #else
  789.         #define _HandleMouseUpInContent HIObject_HandleMouseUpInContent
  790.     #endif /* _HandleMouseUpInContent */
  791. #endif /* SOMGD_HandleMouseUpInContent */
  792.  
  793. /*
  794.  * New Method: TakeUserInputFocus
  795.  */
  796. typedef void   (SOMLINK *somTD_HIObject_TakeUserInputFocus)(HIObject *somSelf, Environment *ev);
  797. #define somMD_HIObject_TakeUserInputFocus "::HIObject::TakeUserInputFocus"
  798. #define HIObject_TakeUserInputFocus(somSelf,ev) \
  799.     (SOM_Resolve(somSelf, HIObject, TakeUserInputFocus) \
  800.     (somSelf,ev))
  801. #ifndef SOMGD_TakeUserInputFocus
  802.     #if defined _TakeUserInputFocus || defined __TakeUserInputFocus
  803.         #undef _TakeUserInputFocus
  804.         #undef __TakeUserInputFocus
  805.         #define SOMGD_TakeUserInputFocus 1
  806.     #else
  807.         #define _TakeUserInputFocus HIObject_TakeUserInputFocus
  808.     #endif /* _TakeUserInputFocus */
  809. #endif /* SOMGD_TakeUserInputFocus */
  810.  
  811. /*
  812.  * New Method: ReleaseUserInputFocus
  813.  */
  814. typedef void   (SOMLINK *somTD_HIObject_ReleaseUserInputFocus)(HIObject *somSelf, Environment *ev);
  815. #define somMD_HIObject_ReleaseUserInputFocus "::HIObject::ReleaseUserInputFocus"
  816. #define HIObject_ReleaseUserInputFocus(somSelf,ev) \
  817.     (SOM_Resolve(somSelf, HIObject, ReleaseUserInputFocus) \
  818.     (somSelf,ev))
  819. #ifndef SOMGD_ReleaseUserInputFocus
  820.     #if defined _ReleaseUserInputFocus || defined __ReleaseUserInputFocus
  821.         #undef _ReleaseUserInputFocus
  822.         #undef __ReleaseUserInputFocus
  823.         #define SOMGD_ReleaseUserInputFocus 1
  824.     #else
  825.         #define _ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  826.     #endif /* _ReleaseUserInputFocus */
  827. #endif /* SOMGD_ReleaseUserInputFocus */
  828.  
  829. /*
  830.  * New Method: HasUserInputFocus
  831.  */
  832. typedef boolean   (SOMLINK *somTD_HIObject_HasUserInputFocus)(HIObject *somSelf, Environment *ev);
  833. #define somMD_HIObject_HasUserInputFocus "::HIObject::HasUserInputFocus"
  834. #define HIObject_HasUserInputFocus(somSelf,ev) \
  835.     (SOM_Resolve(somSelf, HIObject, HasUserInputFocus) \
  836.     (somSelf,ev))
  837. #ifndef SOMGD_HasUserInputFocus
  838.     #if defined _HasUserInputFocus || defined __HasUserInputFocus
  839.         #undef _HasUserInputFocus
  840.         #undef __HasUserInputFocus
  841.         #define SOMGD_HasUserInputFocus 1
  842.     #else
  843.         #define _HasUserInputFocus HIObject_HasUserInputFocus
  844.     #endif /* _HasUserInputFocus */
  845. #endif /* SOMGD_HasUserInputFocus */
  846.  
  847. /*
  848.  * New Method: CanReleaseUserInputFocus
  849.  */
  850. typedef boolean   (SOMLINK *somTD_HIObject_CanReleaseUserInputFocus)(HIObject *somSelf, Environment *ev);
  851. #define somMD_HIObject_CanReleaseUserInputFocus "::HIObject::CanReleaseUserInputFocus"
  852. #define HIObject_CanReleaseUserInputFocus(somSelf,ev) \
  853.     (SOM_Resolve(somSelf, HIObject, CanReleaseUserInputFocus) \
  854.     (somSelf,ev))
  855. #ifndef SOMGD_CanReleaseUserInputFocus
  856.     #if defined _CanReleaseUserInputFocus || defined __CanReleaseUserInputFocus
  857.         #undef _CanReleaseUserInputFocus
  858.         #undef __CanReleaseUserInputFocus
  859.         #define SOMGD_CanReleaseUserInputFocus 1
  860.     #else
  861.         #define _CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  862.     #endif /* _CanReleaseUserInputFocus */
  863. #endif /* SOMGD_CanReleaseUserInputFocus */
  864.  
  865. /*
  866.  * New Method: SetUserInputFocusFlags
  867.  */
  868. typedef void   (SOMLINK *somTD_HIObject_SetUserInputFocusFlags)(HIObject *somSelf, Environment *ev,
  869.         HIUserInputFocusFlags flags);
  870. #define somMD_HIObject_SetUserInputFocusFlags "::HIObject::SetUserInputFocusFlags"
  871. #define HIObject_SetUserInputFocusFlags(somSelf,ev,flags) \
  872.     (SOM_Resolve(somSelf, HIObject, SetUserInputFocusFlags) \
  873.     (somSelf,ev,flags))
  874. #ifndef SOMGD_SetUserInputFocusFlags
  875.     #if defined _SetUserInputFocusFlags || defined __SetUserInputFocusFlags
  876.         #undef _SetUserInputFocusFlags
  877.         #undef __SetUserInputFocusFlags
  878.         #define SOMGD_SetUserInputFocusFlags 1
  879.     #else
  880.         #define _SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  881.     #endif /* _SetUserInputFocusFlags */
  882. #endif /* SOMGD_SetUserInputFocusFlags */
  883.  
  884. /*
  885.  * New Method: GetUserInputFocusFlags
  886.  */
  887. typedef HIUserInputFocusFlags   (SOMLINK *somTD_HIObject_GetUserInputFocusFlags)(HIObject *somSelf, Environment *ev);
  888. #define somMD_HIObject_GetUserInputFocusFlags "::HIObject::GetUserInputFocusFlags"
  889. #define HIObject_GetUserInputFocusFlags(somSelf,ev) \
  890.     (SOM_Resolve(somSelf, HIObject, GetUserInputFocusFlags) \
  891.     (somSelf,ev))
  892. #ifndef SOMGD_GetUserInputFocusFlags
  893.     #if defined _GetUserInputFocusFlags || defined __GetUserInputFocusFlags
  894.         #undef _GetUserInputFocusFlags
  895.         #undef __GetUserInputFocusFlags
  896.         #define SOMGD_GetUserInputFocusFlags 1
  897.     #else
  898.         #define _GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  899.     #endif /* _GetUserInputFocusFlags */
  900. #endif /* SOMGD_GetUserInputFocusFlags */
  901.  
  902. /*
  903.  * New Method: SetTitle
  904.  */
  905. typedef OSStatus   (SOMLINK *somTD_HIObject_SetTitle)(HIObject *somSelf, Environment *ev,
  906.         ConstHIImageRef title,
  907.         HIAdoptionFlags disposalAdoptionFlags);
  908. #define somMD_HIObject_SetTitle "::HIObject::SetTitle"
  909. #define HIObject_SetTitle(somSelf,ev,title,disposalAdoptionFlags) \
  910.     (SOM_Resolve(somSelf, HIObject, SetTitle) \
  911.     (somSelf,ev,title,disposalAdoptionFlags))
  912. #ifndef SOMGD_SetTitle
  913.     #if defined _SetTitle || defined __SetTitle
  914.         #undef _SetTitle
  915.         #undef __SetTitle
  916.         #define SOMGD_SetTitle 1
  917.     #else
  918.         #define _SetTitle HIObject_SetTitle
  919.     #endif /* _SetTitle */
  920. #endif /* SOMGD_SetTitle */
  921.  
  922. /*
  923.  * New Method: GetTitle
  924.  */
  925. typedef OSStatus   (SOMLINK *somTD_HIObject_GetTitle)(HIObject *somSelf, Environment *ev,
  926.         HIImageRef* title);
  927. #define somMD_HIObject_GetTitle "::HIObject::GetTitle"
  928. #define HIObject_GetTitle(somSelf,ev,title) \
  929.     (SOM_Resolve(somSelf, HIObject, GetTitle) \
  930.     (somSelf,ev,title))
  931. #ifndef SOMGD_GetTitle
  932.     #if defined _GetTitle || defined __GetTitle
  933.         #undef _GetTitle
  934.         #undef __GetTitle
  935.         #define SOMGD_GetTitle 1
  936.     #else
  937.         #define _GetTitle HIObject_GetTitle
  938.     #endif /* _GetTitle */
  939. #endif /* SOMGD_GetTitle */
  940.  
  941. /*
  942.  * New Method: Draw
  943.  */
  944. typedef void   (SOMLINK *somTD_HIObject_Draw)(HIObject *somSelf, Environment *ev,
  945.         CGrafPtr whichPort,
  946.         RgnHandle drawRgn);
  947. #define somMD_HIObject_Draw "::HIObject::Draw"
  948. #define HIObject_Draw(somSelf,ev,whichPort,drawRgn) \
  949.     (SOM_Resolve(somSelf, HIObject, Draw) \
  950.     (somSelf,ev,whichPort,drawRgn))
  951. #ifndef SOMGD_Draw
  952.     #if defined _Draw || defined __Draw
  953.         #undef _Draw
  954.         #undef __Draw
  955.         #define SOMGD_Draw 1
  956.     #else
  957.         #define _Draw HIObject_Draw
  958.     #endif /* _Draw */
  959. #endif /* SOMGD_Draw */
  960.  
  961. /*
  962.  * New Method: Erase
  963.  */
  964. typedef void   (SOMLINK *somTD_HIObject_Erase)(HIObject *somSelf, Environment *ev,
  965.         CGrafPtr whichPort,
  966.         RgnHandle eraseRgn);
  967. #define somMD_HIObject_Erase "::HIObject::Erase"
  968. #define HIObject_Erase(somSelf,ev,whichPort,eraseRgn) \
  969.     (SOM_Resolve(somSelf, HIObject, Erase) \
  970.     (somSelf,ev,whichPort,eraseRgn))
  971. #ifndef SOMGD_Erase
  972.     #if defined _Erase || defined __Erase
  973.         #undef _Erase
  974.         #undef __Erase
  975.         #define SOMGD_Erase 1
  976.     #else
  977.         #define _Erase HIObject_Erase
  978.     #endif /* _Erase */
  979. #endif /* SOMGD_Erase */
  980.  
  981. /*
  982.  * New Method: Invalidate
  983.  */
  984. typedef void   (SOMLINK *somTD_HIObject_Invalidate)(HIObject *somSelf, Environment *ev);
  985. #define somMD_HIObject_Invalidate "::HIObject::Invalidate"
  986. #define HIObject_Invalidate(somSelf,ev) \
  987.     (SOM_Resolve(somSelf, HIObject, Invalidate) \
  988.     (somSelf,ev))
  989. #ifndef SOMGD_Invalidate
  990.     #if defined _Invalidate || defined __Invalidate
  991.         #undef _Invalidate
  992.         #undef __Invalidate
  993.         #define SOMGD_Invalidate 1
  994.     #else
  995.         #define _Invalidate HIObject_Invalidate
  996.     #endif /* _Invalidate */
  997. #endif /* SOMGD_Invalidate */
  998.  
  999. /*
  1000.  * New Method: GetDrawingMode
  1001.  */
  1002. typedef HIDrawingMode   (SOMLINK *somTD_HIObject_GetDrawingMode)(HIObject *somSelf, Environment *ev);
  1003. #define somMD_HIObject_GetDrawingMode "::HIObject::GetDrawingMode"
  1004. #define HIObject_GetDrawingMode(somSelf,ev) \
  1005.     (SOM_Resolve(somSelf, HIObject, GetDrawingMode) \
  1006.     (somSelf,ev))
  1007. #ifndef SOMGD_GetDrawingMode
  1008.     #if defined _GetDrawingMode || defined __GetDrawingMode
  1009.         #undef _GetDrawingMode
  1010.         #undef __GetDrawingMode
  1011.         #define SOMGD_GetDrawingMode 1
  1012.     #else
  1013.         #define _GetDrawingMode HIObject_GetDrawingMode
  1014.     #endif /* _GetDrawingMode */
  1015. #endif /* SOMGD_GetDrawingMode */
  1016.  
  1017. /*
  1018.  * New Method: SetDrawingMode
  1019.  */
  1020. typedef void   (SOMLINK *somTD_HIObject_SetDrawingMode)(HIObject *somSelf, Environment *ev,
  1021.         HIDrawingMode drawingMode);
  1022. #define somMD_HIObject_SetDrawingMode "::HIObject::SetDrawingMode"
  1023. #define HIObject_SetDrawingMode(somSelf,ev,drawingMode) \
  1024.     (SOM_Resolve(somSelf, HIObject, SetDrawingMode) \
  1025.     (somSelf,ev,drawingMode))
  1026. #ifndef SOMGD_SetDrawingMode
  1027.     #if defined _SetDrawingMode || defined __SetDrawingMode
  1028.         #undef _SetDrawingMode
  1029.         #undef __SetDrawingMode
  1030.         #define SOMGD_SetDrawingMode 1
  1031.     #else
  1032.         #define _SetDrawingMode HIObject_SetDrawingMode
  1033.     #endif /* _SetDrawingMode */
  1034. #endif /* SOMGD_SetDrawingMode */
  1035.  
  1036. /*
  1037.  * New Method: SetBackgroundPattern
  1038.  */
  1039. typedef void   (SOMLINK *somTD_HIObject_SetBackgroundPattern)(HIObject *somSelf, Environment *ev,
  1040.         PixPatHandle backgroundPattern);
  1041. #define somMD_HIObject_SetBackgroundPattern "::HIObject::SetBackgroundPattern"
  1042. #define HIObject_SetBackgroundPattern(somSelf,ev,backgroundPattern) \
  1043.     (SOM_Resolve(somSelf, HIObject, SetBackgroundPattern) \
  1044.     (somSelf,ev,backgroundPattern))
  1045. #ifndef SOMGD_SetBackgroundPattern
  1046.     #if defined _SetBackgroundPattern || defined __SetBackgroundPattern
  1047.         #undef _SetBackgroundPattern
  1048.         #undef __SetBackgroundPattern
  1049.         #define SOMGD_SetBackgroundPattern 1
  1050.     #else
  1051.         #define _SetBackgroundPattern HIObject_SetBackgroundPattern
  1052.     #endif /* _SetBackgroundPattern */
  1053. #endif /* SOMGD_SetBackgroundPattern */
  1054.  
  1055. /*
  1056.  * New Method: GetBackgroundPattern
  1057.  */
  1058. typedef PixPatHandle   (SOMLINK *somTD_HIObject_GetBackgroundPattern)(HIObject *somSelf, Environment *ev);
  1059. #define somMD_HIObject_GetBackgroundPattern "::HIObject::GetBackgroundPattern"
  1060. #define HIObject_GetBackgroundPattern(somSelf,ev) \
  1061.     (SOM_Resolve(somSelf, HIObject, GetBackgroundPattern) \
  1062.     (somSelf,ev))
  1063. #ifndef SOMGD_GetBackgroundPattern
  1064.     #if defined _GetBackgroundPattern || defined __GetBackgroundPattern
  1065.         #undef _GetBackgroundPattern
  1066.         #undef __GetBackgroundPattern
  1067.         #define SOMGD_GetBackgroundPattern 1
  1068.     #else
  1069.         #define _GetBackgroundPattern HIObject_GetBackgroundPattern
  1070.     #endif /* _GetBackgroundPattern */
  1071. #endif /* SOMGD_GetBackgroundPattern */
  1072.  
  1073. /*
  1074.  * New Method: Cut
  1075.  */
  1076. typedef void   (SOMLINK *somTD_HIObject_Cut)(HIObject *somSelf, Environment *ev);
  1077. #define somMD_HIObject_Cut "::HIObject::Cut"
  1078. #define HIObject_Cut(somSelf,ev) \
  1079.     (SOM_Resolve(somSelf, HIObject, Cut) \
  1080.     (somSelf,ev))
  1081. #ifndef SOMGD_Cut
  1082.     #if defined _Cut || defined __Cut
  1083.         #undef _Cut
  1084.         #undef __Cut
  1085.         #define SOMGD_Cut 1
  1086.     #else
  1087.         #define _Cut HIObject_Cut
  1088.     #endif /* _Cut */
  1089. #endif /* SOMGD_Cut */
  1090.  
  1091. /*
  1092.  * New Method: Copy
  1093.  */
  1094. typedef void   (SOMLINK *somTD_HIObject_Copy)(HIObject *somSelf, Environment *ev);
  1095. #define somMD_HIObject_Copy "::HIObject::Copy"
  1096. #define HIObject_Copy(somSelf,ev) \
  1097.     (SOM_Resolve(somSelf, HIObject, Copy) \
  1098.     (somSelf,ev))
  1099. #ifndef SOMGD_Copy
  1100.     #if defined _Copy || defined __Copy
  1101.         #undef _Copy
  1102.         #undef __Copy
  1103.         #define SOMGD_Copy 1
  1104.     #else
  1105.         #define _Copy HIObject_Copy
  1106.     #endif /* _Copy */
  1107. #endif /* SOMGD_Copy */
  1108.  
  1109. /*
  1110.  * New Method: Paste
  1111.  */
  1112. typedef void   (SOMLINK *somTD_HIObject_Paste)(HIObject *somSelf, Environment *ev);
  1113. #define somMD_HIObject_Paste "::HIObject::Paste"
  1114. #define HIObject_Paste(somSelf,ev) \
  1115.     (SOM_Resolve(somSelf, HIObject, Paste) \
  1116.     (somSelf,ev))
  1117. #ifndef SOMGD_Paste
  1118.     #if defined _Paste || defined __Paste
  1119.         #undef _Paste
  1120.         #undef __Paste
  1121.         #define SOMGD_Paste 1
  1122.     #else
  1123.         #define _Paste HIObject_Paste
  1124.     #endif /* _Paste */
  1125. #endif /* SOMGD_Paste */
  1126.  
  1127. /*
  1128.  * New Method: Clear
  1129.  */
  1130. typedef void   (SOMLINK *somTD_HIObject_Clear)(HIObject *somSelf, Environment *ev);
  1131. #define somMD_HIObject_Clear "::HIObject::Clear"
  1132. #define HIObject_Clear(somSelf,ev) \
  1133.     (SOM_Resolve(somSelf, HIObject, Clear) \
  1134.     (somSelf,ev))
  1135. #ifndef SOMGD_Clear
  1136.     #if defined _Clear || defined __Clear
  1137.         #undef _Clear
  1138.         #undef __Clear
  1139.         #define SOMGD_Clear 1
  1140.     #else
  1141.         #define _Clear HIObject_Clear
  1142.     #endif /* _Clear */
  1143. #endif /* SOMGD_Clear */
  1144.  
  1145. /*
  1146.  * New Method: GetClipboardSupportFlags
  1147.  */
  1148. typedef HIClipboardSupportFlags   (SOMLINK *somTD_HIObject_GetClipboardSupportFlags)(HIObject *somSelf, Environment *ev);
  1149. #define somMD_HIObject_GetClipboardSupportFlags "::HIObject::GetClipboardSupportFlags"
  1150. #define HIObject_GetClipboardSupportFlags(somSelf,ev) \
  1151.     (SOM_Resolve(somSelf, HIObject, GetClipboardSupportFlags) \
  1152.     (somSelf,ev))
  1153. #ifndef SOMGD_GetClipboardSupportFlags
  1154.     #if defined _GetClipboardSupportFlags || defined __GetClipboardSupportFlags
  1155.         #undef _GetClipboardSupportFlags
  1156.         #undef __GetClipboardSupportFlags
  1157.         #define SOMGD_GetClipboardSupportFlags 1
  1158.     #else
  1159.         #define _GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  1160.     #endif /* _GetClipboardSupportFlags */
  1161. #endif /* SOMGD_GetClipboardSupportFlags */
  1162.  
  1163. /*
  1164.  * New Method: AddStateChangeCallback
  1165.  */
  1166. typedef OSStatus   (SOMLINK *somTD_HIObject_AddStateChangeCallback)(HIObject *somSelf, Environment *ev,
  1167.         HIStateChangeCallbackProcPtr changedStateCallback,
  1168.         HIStateChangeCallbackRef* newCallbackRef);
  1169. #define somMD_HIObject_AddStateChangeCallback "::HIObject::AddStateChangeCallback"
  1170. #define HIObject_AddStateChangeCallback(somSelf,ev,changedStateCallback,newCallbackRef) \
  1171.     (SOM_Resolve(somSelf, HIObject, AddStateChangeCallback) \
  1172.     (somSelf,ev,changedStateCallback,newCallbackRef))
  1173. #ifndef SOMGD_AddStateChangeCallback
  1174.     #if defined _AddStateChangeCallback || defined __AddStateChangeCallback
  1175.         #undef _AddStateChangeCallback
  1176.         #undef __AddStateChangeCallback
  1177.         #define SOMGD_AddStateChangeCallback 1
  1178.     #else
  1179.         #define _AddStateChangeCallback HIObject_AddStateChangeCallback
  1180.     #endif /* _AddStateChangeCallback */
  1181. #endif /* SOMGD_AddStateChangeCallback */
  1182.  
  1183. /*
  1184.  * New Method: RemoveStateChangeCallback
  1185.  */
  1186. typedef OSStatus   (SOMLINK *somTD_HIObject_RemoveStateChangeCallback)(HIObject *somSelf, Environment *ev,
  1187.         HIStateChangeCallbackRef callbackRefToRemove);
  1188. #define somMD_HIObject_RemoveStateChangeCallback "::HIObject::RemoveStateChangeCallback"
  1189. #define HIObject_RemoveStateChangeCallback(somSelf,ev,callbackRefToRemove) \
  1190.     (SOM_Resolve(somSelf, HIObject, RemoveStateChangeCallback) \
  1191.     (somSelf,ev,callbackRefToRemove))
  1192. #ifndef SOMGD_RemoveStateChangeCallback
  1193.     #if defined _RemoveStateChangeCallback || defined __RemoveStateChangeCallback
  1194.         #undef _RemoveStateChangeCallback
  1195.         #undef __RemoveStateChangeCallback
  1196.         #define SOMGD_RemoveStateChangeCallback 1
  1197.     #else
  1198.         #define _RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  1199.     #endif /* _RemoveStateChangeCallback */
  1200. #endif /* SOMGD_RemoveStateChangeCallback */
  1201.  
  1202. /*
  1203.  * Direct call procedure
  1204.  */
  1205. typedef OSStatus   (SOMLINK *somTD_HIObject_GetHIObjectFromRefLabel)(Environment *ev,
  1206.         RefLabel* identifier,
  1207.         ItemCount requestedObjects,
  1208.         ItemCount* totalObjects,
  1209.         HIObject** theObjects);
  1210. #define HIObject_GetHIObjectFromRefLabel ((somTD_HIObject_GetHIObjectFromRefLabel) HIObjectClassData.GetHIObjectFromRefLabel)
  1211. #ifndef SOMGD_GetHIObjectFromRefLabel
  1212.     #if defined _GetHIObjectFromRefLabel || defined __GetHIObjectFromRefLabel
  1213.         #undef _GetHIObjectFromRefLabel
  1214.         #undef __GetHIObjectFromRefLabel
  1215.         #define SOMGD_GetHIObjectFromRefLabel 1
  1216.     #else
  1217.         #define _GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  1218.     #endif /* _GetHIObjectFromRefLabel */
  1219. #endif /* SOMGD_GetHIObjectFromRefLabel */
  1220.  
  1221. /*
  1222.  * Direct call procedure
  1223.  */
  1224. typedef OSStatus   (SOMLINK *somTD_HIObject_GetNewHIObject)(Environment *ev,
  1225.         AESubDesc* objectInitializer,
  1226.         HIObject** newObject);
  1227. #define HIObject_GetNewHIObject ((somTD_HIObject_GetNewHIObject) HIObjectClassData.GetNewHIObject)
  1228. #ifndef SOMGD_GetNewHIObject
  1229.     #if defined _GetNewHIObject || defined __GetNewHIObject
  1230.         #undef _GetNewHIObject
  1231.         #undef __GetNewHIObject
  1232.         #define SOMGD_GetNewHIObject 1
  1233.     #else
  1234.         #define _GetNewHIObject HIObject_GetNewHIObject
  1235.     #endif /* _GetNewHIObject */
  1236. #endif /* SOMGD_GetNewHIObject */
  1237.  
  1238. /*
  1239.  * Direct call procedure
  1240.  */
  1241. typedef OSStatus   (SOMLINK *somTD_HIObject_GetNewHIObjectFromResource)(Environment *ev,
  1242.         ResID objectInitializerResourceID,
  1243.         HIObject** newObject);
  1244. #define HIObject_GetNewHIObjectFromResource ((somTD_HIObject_GetNewHIObjectFromResource) HIObjectClassData.GetNewHIObjectFromResource)
  1245. #ifndef SOMGD_GetNewHIObjectFromResource
  1246.     #if defined _GetNewHIObjectFromResource || defined __GetNewHIObjectFromResource
  1247.         #undef _GetNewHIObjectFromResource
  1248.         #undef __GetNewHIObjectFromResource
  1249.         #define SOMGD_GetNewHIObjectFromResource 1
  1250.     #else
  1251.         #define _GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  1252.     #endif /* _GetNewHIObjectFromResource */
  1253. #endif /* SOMGD_GetNewHIObjectFromResource */
  1254.  
  1255. /*
  1256.  * New Method: DrawContent
  1257.  */
  1258. typedef void   (SOMLINK *somTD_HIObject_DrawContent)(HIObject *somSelf, Environment *ev,
  1259.         CGrafPtr whichPort,
  1260.         RgnHandle drawRgn);
  1261. #define somMD_HIObject_DrawContent "::HIObject::DrawContent"
  1262. #define HIObject_DrawContent(somSelf,ev,whichPort,drawRgn) \
  1263.     (SOM_Resolve(somSelf, HIObject, DrawContent) \
  1264.     (somSelf,ev,whichPort,drawRgn))
  1265. #ifndef SOMGD_DrawContent
  1266.     #if defined _DrawContent || defined __DrawContent
  1267.         #undef _DrawContent
  1268.         #undef __DrawContent
  1269.         #define SOMGD_DrawContent 1
  1270.     #else
  1271.         #define _DrawContent HIObject_DrawContent
  1272.     #endif /* _DrawContent */
  1273. #endif /* SOMGD_DrawContent */
  1274.  
  1275. /*
  1276.  * New Method: EraseContent
  1277.  */
  1278. typedef void   (SOMLINK *somTD_HIObject_EraseContent)(HIObject *somSelf, Environment *ev,
  1279.         CGrafPtr whichPort,
  1280.         RgnHandle regionToErase);
  1281. #define somMD_HIObject_EraseContent "::HIObject::EraseContent"
  1282. #define HIObject_EraseContent(somSelf,ev,whichPort,regionToErase) \
  1283.     (SOM_Resolve(somSelf, HIObject, EraseContent) \
  1284.     (somSelf,ev,whichPort,regionToErase))
  1285. #ifndef SOMGD_EraseContent
  1286.     #if defined _EraseContent || defined __EraseContent
  1287.         #undef _EraseContent
  1288.         #undef __EraseContent
  1289.         #define SOMGD_EraseContent 1
  1290.     #else
  1291.         #define _EraseContent HIObject_EraseContent
  1292.     #endif /* _EraseContent */
  1293. #endif /* SOMGD_EraseContent */
  1294.  
  1295. /*
  1296.  * New Method: TranslatePoint
  1297.  */
  1298. typedef void   (SOMLINK *somTD_HIObject_TranslatePoint)(HIObject *somSelf, Environment *ev,
  1299.         HICoordinateSystem translateFrom,
  1300.         HICoordinateSystem translateTo,
  1301.         Point* sourcePoint,
  1302.         Point* translatedPoint);
  1303. #define somMD_HIObject_TranslatePoint "::HIObject::TranslatePoint"
  1304. #define HIObject_TranslatePoint(somSelf,ev,translateFrom,translateTo,sourcePoint,translatedPoint) \
  1305.     (SOM_Resolve(somSelf, HIObject, TranslatePoint) \
  1306.     (somSelf,ev,translateFrom,translateTo,sourcePoint,translatedPoint))
  1307. #ifndef SOMGD_TranslatePoint
  1308.     #if defined _TranslatePoint || defined __TranslatePoint
  1309.         #undef _TranslatePoint
  1310.         #undef __TranslatePoint
  1311.         #define SOMGD_TranslatePoint 1
  1312.     #else
  1313.         #define _TranslatePoint HIObject_TranslatePoint
  1314.     #endif /* _TranslatePoint */
  1315. #endif /* SOMGD_TranslatePoint */
  1316.  
  1317. /*
  1318.  * New Method: TranslateRect
  1319.  */
  1320. typedef void   (SOMLINK *somTD_HIObject_TranslateRect)(HIObject *somSelf, Environment *ev,
  1321.         HICoordinateSystem translateFrom,
  1322.         HICoordinateSystem translateTo,
  1323.         Rect* sourceRect,
  1324.         Rect* translatedRect);
  1325. #define somMD_HIObject_TranslateRect "::HIObject::TranslateRect"
  1326. #define HIObject_TranslateRect(somSelf,ev,translateFrom,translateTo,sourceRect,translatedRect) \
  1327.     (SOM_Resolve(somSelf, HIObject, TranslateRect) \
  1328.     (somSelf,ev,translateFrom,translateTo,sourceRect,translatedRect))
  1329. #ifndef SOMGD_TranslateRect
  1330.     #if defined _TranslateRect || defined __TranslateRect
  1331.         #undef _TranslateRect
  1332.         #undef __TranslateRect
  1333.         #define SOMGD_TranslateRect 1
  1334.     #else
  1335.         #define _TranslateRect HIObject_TranslateRect
  1336.     #endif /* _TranslateRect */
  1337. #endif /* SOMGD_TranslateRect */
  1338.  
  1339. /*
  1340.  * New Method: StateChanged
  1341.  */
  1342. typedef void   (SOMLINK *somTD_HIObject_StateChanged)(HIObject *somSelf, Environment *ev,
  1343.         HIStateChangeCodeCreator selectorCreator,
  1344.         HIStateChangeCode changedCode);
  1345. #define somMD_HIObject_StateChanged "::HIObject::StateChanged"
  1346. #define HIObject_StateChanged(somSelf,ev,selectorCreator,changedCode) \
  1347.     (SOM_Resolve(somSelf, HIObject, StateChanged) \
  1348.     (somSelf,ev,selectorCreator,changedCode))
  1349. #ifndef SOMGD_StateChanged
  1350.     #if defined _StateChanged || defined __StateChanged
  1351.         #undef _StateChanged
  1352.         #undef __StateChanged
  1353.         #define SOMGD_StateChanged 1
  1354.     #else
  1355.         #define _StateChanged HIObject_StateChanged
  1356.     #endif /* _StateChanged */
  1357. #endif /* SOMGD_StateChanged */
  1358.  
  1359. /*
  1360.  * New Method: SetClipboardSupportFlags
  1361.  */
  1362. typedef void   (SOMLINK *somTD_HIObject_SetClipboardSupportFlags)(HIObject *somSelf, Environment *ev,
  1363.         HIClipboardSupportFlags flags);
  1364. #define somMD_HIObject_SetClipboardSupportFlags "::HIObject::SetClipboardSupportFlags"
  1365. #define HIObject_SetClipboardSupportFlags(somSelf,ev,flags) \
  1366.     (SOM_Resolve(somSelf, HIObject, SetClipboardSupportFlags) \
  1367.     (somSelf,ev,flags))
  1368. #ifndef SOMGD_SetClipboardSupportFlags
  1369.     #if defined _SetClipboardSupportFlags || defined __SetClipboardSupportFlags
  1370.         #undef _SetClipboardSupportFlags
  1371.         #undef __SetClipboardSupportFlags
  1372.         #define SOMGD_SetClipboardSupportFlags 1
  1373.     #else
  1374.         #define _SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  1375.     #endif /* _SetClipboardSupportFlags */
  1376. #endif /* SOMGD_SetClipboardSupportFlags */
  1377.  
  1378. /*
  1379.  * New Method: Verify
  1380.  */
  1381. typedef OSStatus   (SOMLINK *somTD_HIObject_Verify)(HIObject *somSelf, Environment *ev);
  1382. #define somMD_HIObject_Verify "::HIObject::Verify"
  1383. #define HIObject_Verify(somSelf,ev) \
  1384.     (SOM_Resolve(somSelf, HIObject, Verify) \
  1385.     (somSelf,ev))
  1386. #ifndef SOMGD_Verify
  1387.     #if defined _Verify || defined __Verify
  1388.         #undef _Verify
  1389.         #undef __Verify
  1390.         #define SOMGD_Verify 1
  1391.     #else
  1392.         #define _Verify HIObject_Verify
  1393.     #endif /* _Verify */
  1394. #endif /* SOMGD_Verify */
  1395. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1396. #define HIObject_somInit SOMObject_somInit
  1397. #define HIObject_somUninit SOMObject_somUninit
  1398. #define HIObject_somDuplicateReference SOMObject_somDuplicateReference
  1399. #define HIObject_somCompareReference SOMObject_somCompareReference
  1400. #define HIObject_somRelease SOMObject_somRelease
  1401. #define HIObject_somFree SOMObject_somFree
  1402. #define HIObject_somCanDelete SOMObject_somCanDelete
  1403. #define HIObject_somGetClass SOMObject_somGetClass
  1404. #define HIObject_somGetClassName SOMObject_somGetClassName
  1405. #define HIObject_somGetSize SOMObject_somGetSize
  1406. #define HIObject_somIsA SOMObject_somIsA
  1407. #define HIObject_somRespondsTo SOMObject_somRespondsTo
  1408. #define HIObject_somIsInstanceOf SOMObject_somIsInstanceOf
  1409. #define HIObject_somDispatch SOMObject_somDispatch
  1410. #define HIObject_somClassDispatch SOMObject_somClassDispatch
  1411. #define HIObject_somCastObj SOMObject_somCastObj
  1412. #define HIObject_somResetObj SOMObject_somResetObj
  1413. #define HIObject_somPrintSelf SOMObject_somPrintSelf
  1414. #define HIObject_somDumpSelf SOMObject_somDumpSelf
  1415. #define HIObject_somDumpSelfInt SOMObject_somDumpSelfInt
  1416. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1417.  
  1418. #endif       /* SOM_HIObject_h */
  1419.